// 获取当前环境模式，默认为 "prod"
const env = import.meta.env.MODE || "prod";

// 定义不同环境的配置
const EnvConfig = {
  development: {
    baseApi: "/api",
    mockApi: "https://apifoxmock.com/m1/4068509-0-default/api",
  },
  test: {
    baseApi: "//test.future.com/api",
    mockApi: "https://apifoxmock.com/m1/4068509-0-default/api",
  },
  prod: {
    baseApi: "//future.com/api",
    mockApi: "https://apifoxmock.com/m1/4068509-0-default/api",
  },
};

// 根据当前环境导出对应的配置
export default { env, ...EnvConfig[env], mock: false };
